package com.gmall.coupon.feign.impl;

import com.gmall.common.result.Result;
import com.gmall.coupon.feign.CouponApiFeignClient;
import org.springframework.stereotype.Component;

@Component
public class CouponApiFeignClientFallback implements CouponApiFeignClient {
    @Override
    public Result<String> useCoupon(Long couponId, Long userId, Long orderId) {
        System.out.println("进入熔断器 远程调用优惠券服务失败 useCoupon");
        return null;
    }

    @Override
    public Result<String> unUseCoupon(Long orderId) {
        System.out.println("进入熔断器 远程调用优惠券服务失败 unUseCoupon");
        return null;
    }
}
